  sr        =  48000
  kr        =  4800
  ksmps     =  10
  nchnls    =  2


    instr 1
  kmask     linuxjoystick   0, 1
  kun       init      0
  kx        init      0
  ky        init      0
            vtabk     0, 1, kun, kun, kx, ky
  kxx       port (kx/65536)+0.5, 0.1
  kyy       port  (ky/65536)+0.5, 0.1
  kamp      =  (kxx+kyy)*45
  kmod      =  cpsoct(kxx*10+2)
  kcar      =  cpsoct(kyy*10+2)
  amod      oscil3     kmod, kcar, 2
  asig      oscil3     ampdb(kamp), amod+kcar, 2
            outs      asig, asig
    endin